﻿@using CaptchaMvc.HtmlHelpers
@model Doan.Forum.Models.ForgotPassword
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@if (ViewBag.fogotpass != null)
{
    <div class="alert alert-block fade in alert-error alert-error">
        <a href="#" data-dismiss="alert" class="close">&times;</a>
        @ViewBag.fogotpass
    </div>
}
@if (ViewBag.fogotpasssucc != null)
{
    <div class="alert alert-block fade in alert-success">
        <a href="#" data-dismiss="alert" class="close">&times;</a>
        @ViewBag.fogotpasssucc
    </div>
}

@using (Html.BeginForm("ForgotPassword", "Account", FormMethod.Post))
{
    <legend class="span7">Cấp lại mật khẩu</legend>
    <div class="box-logon">
        <div class="editor-label ">
            <span>Tên đăng nhập</span>
        </div>
          <div class="editor-field">
              @Html.EditorFor(model => model.UserName)
              @Html.ValidationMessageFor(model => model.UserName)
          </div>
          <div class="editor-label ">
            <span>Email</span>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-label">
            <span>Mã xác thực</span>
        </div>
        <div class="editor-field">
            @Html.Captcha("Đổi mã khác", "Nhập vào mã xác thực", 4, "Is required field.")
            @ViewBag.ErrorMessage
        </div>
        <div class="btnNewTopic">
            <input type="submit" value="Cấp lại mật khẩu"  class="btn btn-success btn-large right"/>
        </div>
    </div>
}